package com.xbp.examsystem.service;


import com.xbp.examsystem.entity.Question;
import com.xbp.examsystem.vo.GradingResult;

import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * AI服务接口
 */
public interface AIService {
    String callAi(String prompt);
    /**
     * 调用AI对简答题进行评卷
     * @param question
     * @param userAnswer
     * @return
     */
    GradingResult gradeTextQuestions(Question question, String userAnswer);

    /**
     * 调用AI获取考试评语
     * @param totalPaperScore
     * @param totalScore
     * @param size
     * @param correctCount
     * @return
     */
    String getExamAnswer(int totalScore, int totalPaperScore, int size, AtomicInteger correctCount);

} 